
public class DelenieSOstatkom {
	public static void main(String[] args){
			int x=3296, y=23,s=0, error=0,count=0, ost=0;
			//143.3043478260869565217391
			int[] arr = new int[25];
			System.out.print(x / y);
			s = x - (x / y)*y;
			do {
				arr[count] = s * 10;
				ost =s*10 - y * ((s * 10) / y);	
				if ((s*10)%y == 0){
					error = 1;
					System.out.println("tut");
				}
				else{
					count++;
					for (int z=0;z < count-1;z++){
						if (s*10 == arr[z]){
							error = 1;
						}
					}	 
				}
			    s=ost;
			} while (error != 1);
		System.out.print(".(");
			for(int z=0;z<count-1;z++){
			 	System.out.print(arr[z]/y);	
			}
		System.out.print(")");
	}
}
